import React from "react";
import './global.less'
import {
    BasicLayoutProps,
    Settings as LayoutSettings,
} from '@ant-design/pro-layout';
import { RightHeader } from '@/components/rightHeader'
import { Link } from "umi";
import { getCookies } from './utils/cookies'


export const layout = (): BasicLayoutProps => {
return {
    rightContentRender: () => {
        const loginY = getCookies('loginState')
        return loginY ? <RightHeader /> : (<div><Link to='/login'>登录</Link></div>)
    },
    footerRender: () => <div className='footer'>到底了</div>
};
};